home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++,comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools.misc
- Path: dmocc2.on.bell.ca!bc2cep!news
- From: Eric Marc Loebenberg <loebenbe@qc.bell.ca>
- Subject: Using CreateProcess
- X-Nntp-Posting-Host: cmocft.qc.bell.ca
- Content-Type: text/plain; charset=iso-8859-1
- Message-ID: <31779265.A80@qc.bell.ca>
- Sender: news@on.bell.ca (news admin)
- Content-Transfer-Encoding: 8bit
- Organization: Bell Sygma
- Mime-Version: 1.0
- Date: Fri, 19 Apr 1996 13:17:25 GMT
- X-Mailer: Mozilla 2.0 (Win95; I)
-
- Does anyone have an example of using CreateProcess. I am trying to
- simply use CreateProcess to invoke WORDPAD.EXE but get an Access
- Violation when trying. Thanks.
-
- PROCESS_INFORMATION pi;
- char cBuffer[100]; // contains " c:\fred.dat" for example
- BOOL bSuccess = CreateProcess("WORDPAD.EXE", cBuffer, NULL, NULL, FALSE,
- CREATE_DEFAULT_ERROR_MODE | CREATE_NEW_PROCESS_GROUP, NULL, NULL, NULL,
- &pi);
-
- --
- ***************************************************************
- Eric Marc Loebenberg loebenbe@qc.bell.ca
- Bell Sygma Inc. or: loebenbe@post.sygma.net
- 700 de la GauchetiΦre West Tel: 514-870-0465
- Room 14W1 Fax: 514-870-7583
- Montreal, Quebec, Canada
- H3B 4L1
-